package com.xkdx.caipiao.presistence.historynewaccount;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.caipiao.module.network.AbsAction;

public class HistoryNewAcountAction extends AbsAction {
	String id, logintoken, type, pageindex, pagesize,devicetype,signcode;

	public HistoryNewAcountAction(String id, String logintoken, String type,
			String pageindex, String pagesize,String devicetype,String signcode) {
		this.id = id;
		this.logintoken = logintoken;
		this.type = type;
		this.pageindex = pageindex;
		this.pagesize = pagesize;
		this.devicetype = devicetype;
		this.signcode = signcode;
	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("uid", id);
		map.put("logintoken", logintoken);
		map.put("type", type);
		map.put("pageindex", pageindex);
		map.put("pagesize", pagesize);
		map.put("devicetype", devicetype);
		map.put("signcode", signcode);

		String json = constructJson(map);
		Parameter parameter = new Parameter("User", "GetAccountList_New", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);

	}
}
